<?xml version="1.0" encoding="UTF-8"?>
<!-- 
    Document   : BuscarNotaFiscal
    Created on : 02/06/2009, 14:57:29
    Author     : Administrador
-->
<jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ice="http://www.icesoft.com/icefaces/component" xmlns:jsp="http://java.sun.com/JSP/Page">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <ice:outputHtml id="outputHtml1">
            <ice:outputHead id="outputHead1">
                <ice:outputStyle href="./resources/stylesheet.css" id="outputStyle1"/>
                <ice:outputStyle href="./xmlhttp/css/rime/rime.css" id="outputStyle2"/>
                <ice:outputStyle href="./resources/css/formata_conteudo.css" id="outputStyle3"/>
            </ice:outputHead>
            <ice:outputBody id="outputBody1" style="-rave-layout: grid">
                <ice:form id="form1">
                    <!-- Painel Principal -->
                    <ice:panelGroup id="painelPrincipal" styleClass="principal">
                        <!--  Painel Menu  -->
                        <ice:panelLayout id="panelLayoutMenu" style="width: 100%; top: 26%; left: 9.5%"/>
                        <!-- Painel Cabeçalho -->
                        <ice:panelLayout id="panelLayoutCabecalho" style=" -rave-layout: grid" styleClass="cabecalho">
                            <ice:commandButton action="#{view$Util.btn_voltar_action}" id="panelLayoutLogo" image="/resources/images/logo_soligee.png" styleClass="logo"/>
                        </ice:panelLayout>
                        <!-- Fim - Painel Cabeçalho -->
                        <!-- Painel Título -->
                        <ice:panelLayout id="painelTitulo" style="rave-layout: grid" styleClass="titulo bNotaFiscal">
                            <!-- Painel Voltar -->
                            <ice:panelLayout id="painelVoltar" styleClass="pnVoltar">
                                <ice:commandButton action="#{view$Util.btn_voltar_action}" id="btn_voltar" image="/resources/images/btn/voltar.png" styleClass="btnVoltar"/>
                            </ice:panelLayout>
                            <!-- Fim Painel Voltar -->
                        </ice:panelLayout>
                        <!-- Painel Busca -->
                        <ice:panelLayout id="panelPainelBusca" style="-rave-layout: grid" styleClass="painelBusca">
                            <!-- Tipo Busca  -->
                            <!-- CampoABuscar  -->
                            <ice:selectOneMenu binding="#{view$BuscarNotaFiscal.tipoBusca}" id="tipoBusca" partialSubmit="true" styleClass="tipoBusca" value="#{view$BuscarNotaFiscal.botaoSelecionadoTipoBusca.selectedObject}">
                                <f:selectItems id="selectOneMenu1selectItems" value="#{view$BuscarNotaFiscal.botaoTipoBusca}"/>
                            </ice:selectOneMenu>
                            <ice:selectInputText binding="#{view$BuscarNotaFiscal.campoABuscar1}" id="campoABuscar1" styleClass="campoABuscar"
                                valueChangeListener="#{view$BuscarNotaFiscal.campoABuscar_processValueChange}" width="240">
                                <f:selectItems id="selectInputText1selectedItems"/>
                            </ice:selectInputText>
                            <ice:commandButton action="#{view$BuscarNotaFiscal.btnBuscar_action}" binding="#{view$BuscarNotaFiscal.btnBuscar}" id="btnBuscar"
                                styleClass="btnBuscar" value="Buscar"/>
                            <ice:commandButton action="#{view$BuscarNotaFiscal.btnAlterar_action}" binding="#{view$BuscarNotaFiscal.btnAlterar}" id="btnAlterar"
                                styleClass="btnAlterar" value="Alterar"/>
                            <ice:commandButton action="#{view$BuscarNotaFiscal.btnExcluir_action}" binding="#{view$BuscarNotaFiscal.btnExcluir}" id="btnExcluir"
                                partialSubmit="true" styleClass="btnExcluir" value="Excluir"/>
                            <ice:commandButton action="#{view$BuscarNotaFiscal.btnConfirmarAlteracao_action}"
                                binding="#{view$BuscarNotaFiscal.btnConfirmarAlteracao}" id="btnConfirmarAlteracao" styleClass="btnAlterar" value="Confirmar Alteração"/>
                        </ice:panelLayout>
                        <!-- Painel Corpo -->
                        <ice:panelLayout id="painelCorpo" styleClass="pnCorpo">
                            <!-- Painel Corpo Esquerda -->
                            <ice:panelLayout id="painelCorpoEsquerda" styleClass="pnCorpoEsquerda">
                                <!-- Tabela ResultadoBusca -->
                                <center>
                                    <ice:dataTable binding="#{view$BuscarNotaFiscal.tabelaResultadoBusca}" id="tabelaResultadoBusca" rows="10"
                                        value="#{view$BuscarNotaFiscal.dataTable1Model}" var="currentRow">
                                        <ice:column id="column1">
                                            <ice:outputText id="outputText1" value="#{currentRow.codNFEntrada}"/>
                                            <f:facet name="header">
                                                <ice:outputText id="outputText2" value="Código"/>
                                            </f:facet>
                                        </ice:column>
                                        <ice:column id="column2">
                                            <h:commandLink action="#{view$BuscarNotaFiscal.linkAction_action}" binding="#{view$BuscarNotaFiscal.linkAction}"
                                                id="linkAction" value="#{currentRow.numeroNFEntrada}"/>
                                            <f:facet name="header">
                                                <ice:outputText id="outputText4" value="Num. Nota"/>
                                            </f:facet>
                                        </ice:column>
                                        <f:facet name="header"/>
                                        <f:facet name="header"/>
                                        <ice:column id="column3">
                                            <ice:outputText id="outputText5" value="#{currentRow.qtdadeParcela}"/>
                                            <f:facet name="header">
                                                <ice:outputText id="outputText6" value="Quantidade Parcelas"/>
                                            </f:facet>
                                        </ice:column>
                                        <f:facet name="footer"/>
                                        <ice:column id="column4">
                                            <ice:outputText id="outputText7" value="#{currentRow.valorTotalNota}"/>
                                            <f:facet name="header">
                                                <ice:outputText id="outputText8" value="Valor Total Nota"/>
                                            </f:facet>
                                        </ice:column>
                                        <f:facet name="footer">
                                            <ice:panelGroup id="panelGroup2" style="display: block; text-align: center" styleClass="list-paging-footer">
                                                <ice:commandButton action="#{view$BuscarNotaFiscal.tabelaResultadoBusca_firstPageAction}"
                                                    binding="#{view$BuscarNotaFiscal.tabelaResultadoBuscaFooterFirstButton}"
                                                    id="tabelaResultadoBuscaFooterFirstButton" value="|&lt;"/>
                                                <ice:commandButton action="#{view$BuscarNotaFiscal.tabelaResultadoBusca_previousPageAction}"
                                                    binding="#{view$BuscarNotaFiscal.tabelaResultadoBuscaFooterPreviousButton}"
                                                    id="tabelaResultadoBuscaFooterPreviousButton" value="&lt;-"/>
                                                <ice:commandButton action="#{view$BuscarNotaFiscal.tabelaResultadoBusca_nextPageAction}"
                                                    binding="#{view$BuscarNotaFiscal.tabelaResultadoBuscaFooterNextButton}"
                                                    id="tabelaResultadoBuscaFooterNextButton" value="-&gt;"/>
                                                <ice:commandButton action="#{view$BuscarNotaFiscal.tabelaResultadoBusca_lastPageAction}"
                                                    binding="#{view$BuscarNotaFiscal.tabelaResultadoBuscaFooterLastButton}"
                                                    id="tabelaResultadoBuscaFooterLastButton" value="&gt;|"/>
                                            </ice:panelGroup>
                                        </f:facet>
                                    </ice:dataTable>
                                </center>
                                <ice:panelPopup binding="#{view$BuscarNotaFiscal.panelPopup}" draggable="true" id="panelPopup"
                                    rendered="#{view$BuscarNotaFiscal.panelPopup1Bean.showDraggablePanel}"
                                    style="height: 133px; left: 264px; top: 144px; position: absolute; width: 214px" visible="#{view$BuscarNotaFiscal.panelPopup1Bean.showModalPanel}">
                                    <f:facet name="header">
                                        <ice:panelGrid id="panelGrid1" style="display:block;width:180px;height:20px;">
                                            <ice:outputText id="outputText14" value="Atenção"/>
                                        </ice:panelGrid>
                                    </f:facet>
                                    <f:facet name="body">
                                        <ice:panelGrid id="panelGrid" style="display:block;width:180px;height:80px;">
                                            <ice:outputText binding="#{view$BuscarNotaFiscal.textoPopUp}" id="textoPopUp" value="body text"/>
                                            <ice:commandButton action="#{view$BuscarNotaFiscal.btnPopUp1_action}" binding="#{view$BuscarNotaFiscal.btnPopUp1}"
                                                id="btnPopUp1" value="submit"/>
                                            <ice:commandButton action="#{view$BuscarNotaFiscal.btnPopUp2_action}" binding="#{view$BuscarNotaFiscal.btnPopUp2}"
                                                id="btnPopUp2" value="submit"/>
                                        </ice:panelGrid>
                                    </f:facet>
                                </ice:panelPopup>
                            </ice:panelLayout>
                            <!-- Painel Corpo Direita -->
                            <ice:panelLayout id="painelCorpoDireita" layout="flow" styleClass="pnCorpoDireita">
                                <ice:panelTabSet binding="#{view$BuscarNotaFiscal.painelBuscarNotaFiscal}" id="painelBuscarNotaFiscal" styleClass="pnTabSet" tabPlacement="Top">
                                    <ice:panelTab id="aba01" label="Nota Fiscal">
                                        <ice:panelLayout id="conteudoAba01" layout="flow" styleClass="pnLayConteudo">
                                            <!--ID -->
                                            <!--Numero da Nota-->
                                            <ice:outputLabel id="tx_numeroNota" style="left: 0px; top: 15px; position: absolute" value="Número da Nota: "/>
                                            <!--Data de Emissão -->
                                            <ice:outputLabel id="tx_dataEmissao" style="left: 0px; top: 70px; position: absolute" value="Data de Emissão: "/>
                                            <ice:selectInputDate binding="#{view$BuscarNotaFiscal.selectInputDataEmissao}" id="selectInputDataEmissao"
                                                partialSubmit="true" popupDateFormat="dd/MM/yyyy" renderAsPopup="true" renderMonthAsDropdown="true"
                                                renderYearAsDropdown="true" style="height: 21px; left: 0px; top: 90px; position: absolute; width: 190px"
                                                value="#{view$BuscarNotaFiscal.selectInputDate1Bean.date1}" visible="true"/>
                                            <!--Data de Entrada -->
                                            <ice:outputLabel id="tx_dataEntrada" style="left: 215px; top: 70px; position: absolute" value="Data de Entrada: "/>
                                            <ice:selectInputDate binding="#{view$BuscarNotaFiscal.selectInputDateEntrada}" id="selectInputDateEntrada"
                                                partialSubmit="true" popupDateFormat="dd/MM/yyyy" renderAsPopup="true" renderMonthAsDropdown="true"
                                                renderYearAsDropdown="true" style="height: 21px; left: 215px; top: 90px; position: absolute; width: 190px"
                                                value="#{view$BuscarNotaFiscal.selectInputDateBean2.date1}" visible="true"/>
                                            <!--Porcentagem Imposto -->
                                            <ice:outputLabel id="tx_porcentagemImposto" style="left: 0px; top: 130px; position: absolute" value="Imposto(%):"/>
                                            <ice:inputText binding="#{view$BuscarNotaFiscal.campoPorcentagemImposto}" id="campoPorcentagemImposto"
                                                partialSubmit="true" onkeypress="mascara(this,valor);" style="left: -2px; top: 148px; position: absolute; width: 55px"/>
                                            <!--Porcentagem Frete -->
                                            <ice:outputLabel id="tx_porcentagemFrete" style="left: 215px; top: 130px; position: absolute" value="Frete(%):"/>
                                            <ice:inputText binding="#{view$BuscarNotaFiscal.campoPorcentagemFrete}" id="campoPorcentagemFrete"
                                                partialSubmit="true" onkeypress="mascara(this,valor);" style="left: 213px; top: 148px; position: absolute; width: 55px"/>
                                            <!--Porcentagem Desconto -->
                                            <ice:outputLabel id="tx_porcentagemDesconto" style="left: 0px; top: 175px; position: absolute" value="Desconto(%):"/>
                                            <ice:inputText binding="#{view$BuscarNotaFiscal.campoPorcentagemDesconto}" id="campoPorcentagemDesconto"
                                                partialSubmit="true" onkeypress="mascara(this,valor);" style="left: -2px; top: 198px; position: absolute; width: 55px"/>
                                            <!--Porcentagem Embalagem -->
                                            <ice:outputLabel id="tx_porcentagemEmbalagem" style="left: 215px; top: 175px; position: absolute; width: 117px" value="Embalagem(%): "/>
                                            <ice:inputText binding="#{view$BuscarNotaFiscal.campoPorcentagemEmbalagem}" id="campoPorcentagemEmbalagem"
                                                partialSubmit="true" onkeypress="mascara(this,valor);" style="left: 213px; top: 198px; position: absolute; width: 55px"/>
                                            <!--Campos Obrigatorios -->
                                            <ice:outputLabel id="tx_camposObrigatorios"
                                                style="color: rgb(255, 0, 0); font-family: 'Courier New','Courier',monospace; font-size: 12px; font-style: italic; left: 0px; top: 265px; position: absolute; width: 203px; z-index: 2" value="(*) - campos obrigatórios"/>
                                            <!-- Finalizar Nota Fiscal -->
                                            <ice:inputText binding="#{view$BuscarNotaFiscal.campoNumeroNota}" id="campoNumeroNota" partialSubmit="true"
                                                readonly="true" style="left: -2px; top: 33px; position: absolute; width: 43px"/>
                                            <ice:inputText binding="#{view$BuscarNotaFiscal.campoCodigoNota}" id="campoCodigoNota" readonly="true" style="left: 166px; top: 46px; position: absolute; width: 71px"/>
                                            <ice:selectOneMenu binding="#{view$BuscarNotaFiscal.campoFornecedor}" id="campoFornecedor" partialSubmit="true"
                                                style="left: -2px; top: 238px; position: absolute; width: 167px" value="#{view$BuscarNotaFiscal.defaultSelectedData5.selectedObject}">
                                                <f:selectItems id="selectOneMenu1selectItems2" value="#{view$BuscarNotaFiscal.selectOneMenu1DefaultItems}"/>
                                            </ice:selectOneMenu>
                                            <ice:outputLabel id="outputLabel1" style="left: 0px; top: 216px; position: absolute" value="Fornecedor:"/>
                                            <ice:outputLabel id="outputLabel2" style="left: 168px; top: 24px; position: absolute" value="Cód."/>
                                        </ice:panelLayout>
                                    </ice:panelTab>
                                    <ice:panelTab id="aba02" label="Itens">
                                        <ice:panelLayout id="conteudoAba02" layout="flow" styleClass="pnLayConteudo">
                                            <!--Quantidade de Parcelas -->
                                            <ice:outputLabel id="tx_quantidadeParcelas"
                                                style="height: 28px; left: 120px; top: 235px; position: absolute; width: 73px" value="Parcelas:"/>
                                            <ice:selectOneMenu binding="#{view$BuscarNotaFiscal.opcaoParcelas}" id="opcaoParcelas" partialSubmit="true"
                                                style="height: 22px; left: 118px; top: 253px; position: absolute; width: 79px" value="#{view$BuscarNotaFiscal.defaultSelectedData1.selectedObject}">
                                                <f:selectItems id="selectOneMenu1selectItems1" value="#{view$BuscarNotaFiscal.selectOneMenu1DefaultItems3}"/>
                                            </ice:selectOneMenu>
                                            <!--Valor Total da Nota -->
                                            <ice:outputLabel id="tx_valorTotalNota" style="left: 15px; top: 235px; position: absolute" value="Total Nota:"/>
                                            <ice:inputText binding="#{view$BuscarNotaFiscal.campoValorTotalNota}" id="campoValorTotalNota" partialSubmit="true"
                                                readonly="true" style="left: 13px; top: 253px; position: absolute; width: 63px"/>
                                            <center>
                                                <ice:dataTable binding="#{view$BuscarNotaFiscal.tabelaItensNotaFiscal}" id="tabelaItensNotaFiscal" rows="5"
                                                    style="left: 25px; top: 30px; position: absolute" value="#{view$BuscarNotaFiscal.dataTable1Model3}" var="currentRow">
                                                    <ice:column id="column5">
                                                        <ice:outputText id="outputText3" value="#{currentRow.codProduto}"/>
                                                        <f:facet name="header">
                                                            <ice:outputText id="outputText9" value="Código"/>
                                                        </f:facet>
                                                    </ice:column>
                                                    <ice:column id="column6">
                                                        <ice:outputText id="outputText10" value="#{currentRow.descricaoProduto}"/>
                                                        <f:facet name="header">
                                                            <ice:outputText id="outputText11" value="Descrição"/>
                                                        </f:facet>
                                                    </ice:column>
                                                    <ice:column id="column7">
                                                        <ice:outputText id="outputText12" value="#{currentRow.valorUnitario}"/>
                                                        <f:facet name="header">
                                                            <ice:outputText id="outputText13" value="Valor Unitário"/>
                                                        </f:facet>
                                                    </ice:column>
                                                    <ice:column id="column8">
                                                        <ice:outputText id="outputText15" value="#{currentRow.quantidade}"/>
                                                        <f:facet name="header">
                                                            <ice:outputText id="outputText16" value="Quantidade"/>
                                                        </f:facet>
                                                    </ice:column>
                                                    <f:facet name="footer"/>
                                                    <f:facet name="footer"/>
                                                    <ice:column id="column9">
                                                        <ice:outputText id="outputText17" value="#{currentRow.total}"/>
                                                        <f:facet name="header">
                                                            <ice:outputText id="outputText18" value="Total"/>
                                                        </f:facet>
                                                    </ice:column>
                                                    <f:facet name="footer"/>
                                                    <ice:column id="column10">
                                                        <h:commandButton action="#{view$BuscarNotaFiscal.btnAlteraItemTabela_action}"
                                                            binding="#{view$BuscarNotaFiscal.btnAlteraItemTabela}" id="btnAlteraItemTabela" value="Alterar"/>
                                                        <f:facet name="header">
                                                            <ice:outputText id="outputText19" value=""/>
                                                        </f:facet>
                                                    </ice:column>
                                                    <f:facet name="footer">
                                                        <ice:panelGroup id="panelGroup1" style="display: block; text-align: center" styleClass="list-paging-footer">
                                                            <ice:commandButton action="#{view$BuscarNotaFiscal.tabelaItensNotaFiscal_firstPageAction}"
                                                                id="tabelaItensNotaFiscalFooterFirstButton" value="|&lt;"/>
                                                            <ice:commandButton action="#{view$BuscarNotaFiscal.tabelaItensNotaFiscal_previousPageAction}"
                                                                id="tabelaItensNotaFiscalFooterPreviousButton" value="&lt;-"/>
                                                            <ice:commandButton action="#{view$BuscarNotaFiscal.tabelaItensNotaFiscal_nextPageAction}"
                                                                id="tabelaItensNotaFiscalFooterNextButton" value="-&gt;"/>
                                                            <ice:commandButton action="#{view$BuscarNotaFiscal.tabelaItensNotaFiscal_lastPageAction}"
                                                                id="tabelaItensNotaFiscalFooterLastButton" value="&gt;|"/>
                                                        </ice:panelGroup>
                                                    </f:facet>
                                                </ice:dataTable>
                                            </center>
                                        </ice:panelLayout>
                                    </ice:panelTab>
                                    <ice:panelTab binding="#{view$BuscarNotaFiscal.aba03}" id="aba03" label="Alterar Item" style="">
                                        <ice:panelLayout id="conteudoAba03" styleClass="pnLayConteudo">
                                            <ice:outputLabel id="txCodProduto" style="left: 20px; top: 10px; position: absolute" value="Código"/>
                                            <ice:outputLabel id="txQuantidade" style="left: 160px; top: 10px; position: absolute" value="Descrição"/>
                                            <ice:outputLabel id="txValorUnitario" style="left: 160px; top: 70px; position: absolute" value="Quantidade"/>
                                            <ice:outputLabel id="txTotal" style="left: 20px; top: 70px; position: absolute" value="Valor Unitário"/>
                                            <ice:outputLabel id="txDescricao" style="left: 20px; top: 120px; position: absolute" value="Total"/>
                                            <ice:inputText binding="#{view$BuscarNotaFiscal.campoCodProduto}" id="campoCodProduto" readonly="true" style="left: 18px; top: 38px; position: absolute"/>
                                            <ice:inputText binding="#{view$BuscarNotaFiscal.campoDescricao}" id="campoDescricao" partialSubmit="true"
                                                readonly="true" style="left: 158px; top: 38px; position: absolute"/>
                                            <ice:inputText binding="#{view$BuscarNotaFiscal.campoValorUnitario}" id="campoValorUnitario" partialSubmit="true"
                                                readonly="true" style="left: 18px; top: 98px; position: absolute"/>
                                            <ice:inputText binding="#{view$BuscarNotaFiscal.campoQuantidade}" id="campoQuantidade" partialSubmit="true"
                                                readonly="true" style="left: 158px; top: 98px; position: absolute"/>
                                            <ice:inputText binding="#{view$BuscarNotaFiscal.campoTotal}" id="campoTotal" partialSubmit="true" readonly="true" style="left: 18px; top: 148px; position: absolute"/>
                                            <ice:commandButton action="#{view$BuscarNotaFiscal.btnOKAlteraItem_action}" id="btnOKAlteraItem"
                                                style="left: 170px; top: 150px; position: absolute" value="OK"/>
                                        </ice:panelLayout>
                                    </ice:panelTab>
                                </ice:panelTabSet>
                            </ice:panelLayout>
                            <!-- Fim Painel Corpo Direita -->
                            <!-- Painel Rodapé -->
                            <ice:panelLayout id="painelRodape" layout="flow" styleClass="boxRodape">
                                <ice:panelLayout id="painelRodapeEsq" styleClass="esqRodape"/>
                                <ice:panelLayout id="logoRodape" styleClass="logoRodape"/>
                                <ice:panelLayout id="painelRodapeDir" styleClass="dirRodape"/>
                            </ice:panelLayout>
                            <!-- Fim Painel Rodapé -->
                        </ice:panelLayout>
                        <!-- Fim - Painel Corpo -->
                    </ice:panelGroup>
                    <!-- Fim - Painel Principal -->
                </ice:form>
            </ice:outputBody>
        </ice:outputHtml>
    </f:view>
</jsp:root>
